﻿namespace WallpaperDemo.Models
{
    public class User
    {
        public string UserId { get; set; } = "";
        public string UserName { get; set; } = string.Empty;
        public string UserPassword { get; set; }
        public bool? IsLogin { get; set; }
        public List<Like>? UserLikes { get; set; } = new List<Like>();
        
        public List<string>? UserTags
        {
            get
            {
                List<string> tags = new List<string>();
                UserLikes.ForEach(l =>
                {
                    tags.Append(l.LikeTag);
                });
                return tags;
            }
        }
    }
}
